package departmentintro;

import com.andro.chansung.R;

import android.app.ActionBar;
import android.app.Activity;
import android.app.ActionBar.Tab;
import android.os.Bundle;

public class DepartmentIntroActivity extends Activity {
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.department_main_layout);
		
		ActionBar actionBar = getActionBar();
		actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
		actionBar.setDisplayShowHomeEnabled(false);
		actionBar.setDisplayShowTitleEnabled(false);
		
		Tab tab = actionBar.newTab()
						   .setText("학과\n소개")
						   .setTabListener(new TabListener<DepartmentIntroFragment>(this, 
								   											   		"department", 
								   											   		DepartmentIntroFragment.class));
		actionBar.addTab(tab);
		
//		tab		= actionBar.newTab()
//						   .setText("교수\n소개")
//						   .setTabListener(new TabListener<DepartmentProffesorIntroFragment>(this, 
//								   															"proffesor", 
//								   															DepartmentProffesorIntroFragment.class));
//		actionBar.addTab(tab);
		
//		tab		= actionBar.newTab()
//						   .setText("공학\n인증제")
//						   .setTabListener(new TabListener<DepartmentAbeekIntroFragment>(this,
//								   														"abeek", 
//								   														DepartmentAbeekIntroFragment.class));
//		actionBar.addTab(tab);
//		
//		tab		= actionBar.newTab()
//				   			.setText("실험실\n소개")
//				   			.setTabListener(new TabListener<DepartmentLabIntroFragment>(this,
//									   													"labs", 
//									   													DepartmentLabIntroFragment.class));
//		actionBar.addTab(tab);
	}
}
